/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.deployment.entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

/**
 *
 * @author roniere
 */
/**
 * Alternativas
 * @author roniere
 */
@Entity
public class Options implements Serializable{
    @Id
    @SequenceGenerator(name="seq_options", sequenceName="seq_options", allocationSize=1)
    @GeneratedValue(generator="seq_options", strategy= GenerationType.SEQUENCE)
    private Long id;
    
    @Column
    private Long cod;
    
    @Column
    private String title;
    
    @Column
    private String textHelp;
    @Column
    private int score;

    public Options() {
    }

    public Options(String title, String textHelp) {
        this.title = title;
        this.textHelp = textHelp;
    }
    
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
 
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTextHelp() {
        return textHelp;
    }

    public void setTextHelp(String textHelp) {
        this.textHelp = textHelp;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Long getCod() {
        return cod;
    }

    public void setCod(Long cod) {
        this.cod = cod;
    }
    
    

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 13 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Options other = (Options) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Options{" + "id=" + id + ", cod=" + cod + ", title=" + title + ", textHelp=" + textHelp + ", score=" + score + '}';
    }

}
